package org.example.service.Impl;

import org.example.domain.Product;
import org.example.mapper.ProductMapper;
import org.example.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    ProductMapper productMapper;

    @Override
    public List<Product> productList(Product product) {
        return productMapper.productList(product);
    }

    @Override
    public Product getById(Integer id) {
        return productMapper.getById(id);
    }
}
